Implement strike-through and overline on NextStep (Bug#8863).
authorAlp Aker <alp.tekin.aker@gmail.com>
Thu, 28 Jul 2011 18:26:29 +0000 (14:26 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 28 Jul 2011 18:26:29 +0000 (14:26 -0400)
commit46e1f09932f8b2ad8fb726be257071b0a1897046
treea316e81f0985b8e443a0396ffb2f4e8c4120f6e9
parentdd263d905d9ec062475bdeb3c56af78c03c49958
Implement strike-through and overline on NextStep (Bug#8863).

* src/nsfont.m (nsfont_open): Use underline position provided by font,
instead of hard-coded value of 2.
(nsfont_draw): Call ns_draw_text_decoration instead.

* src/nsterm.h: Add declaration for ns_draw_text_decoration.

* src/nsterm.m (ns_draw_text_decoration): New function for drawing
underline, overline, and strike-through.
(ns_dumpglyphs_image, ns_dumpglyphs_stretch): Add call to
ns_draw_text_decoration.  Change treatment of cursor drawing to
accomodate underlining, etc.
src/ChangeLog
src/nsfont.m
src/nsterm.h
src/nsterm.m